package com.freework.sys.dic.vo;

import com.freework.freedbm.cfg.fieldcfg.Like;
import com.freework.freedbm.cfg.fieldcfg.type.Type;
import com.freework.freedbm.dao.jdbcm.map.dto.MapDTO;
import com.freework.freedbm.dao.jdbcm.map.dto.MapFieldInfo;

public class PredefineField extends MapFieldInfo{

	public PredefineField(int order, String name, String colName, Type type,
			boolean isDbCol, boolean iskey, Like like, String comments) {
		super(order, name, colName, type, isDbCol, iskey, like, comments);
		
		
	}
	
	public Object getValue(Object obj) {
		PredefineVO vo=((PredefineVO)obj);
		return vo.getIndex(this.getOrder());
		
	}


	public void setValue(Object obj, Object Value) {
		PredefineVO vo=((PredefineVO)obj);
		vo.putIndex(ordinal(), Value);
	}
	

}
